{
  "route_legs": [
    {
      "leg_type": "walk",
      "leg_duration": "17m 33s",
      "leg_duration_s": 1053,
      "leg_from_coords": "40.6481, -73.9380",
      "leg_to_coords": "40.6508, -73.9496",
      "walk_to": "Church Av",
      "walk_from": "Origin",
      "walk_dist_km": 1.0241824280579117
    },
    {
      "leg_type": "trip",
      "leg_duration": "32m 30s",
      "leg_duration_s": 1950,
      "leg_from_coords": "40.6508, -73.9496",
      "leg_to_coords": "40.7378, -74.0002",
      "trip_route": "2",
      "trip_route_headsign": "Wakefield-241 St",
      "trip_from_depart": "22:29:30",
      "trip_from": "Church Av",
      "trip_to_arrive": "23:02",
      "trip_to": "14 St",
      "trip_stops": {
        "22:29:30": "Church Av",
        "22:31": "Winthrop St",
        "22:32:30": "Sterling St",
        "22:33:30": "President St-Medgar Evers College",
        "22:36": "Franklin Av-Medgar Evers College",
        "22:38": "Eastern Pkwy-Brooklyn Museum",
        "22:40": "Grand Army Plaza",
        "22:42": "Bergen St",
        "22:43:30": "Atlantic Av-Barclays Ctr",
        "22:45": "Nevins St",
        "22:46:30": "Hoyt St",
        "22:48": "Borough Hall",
        "22:49:30": "Clark St",
        "22:53": "Wall St",
        "22:54": "Fulton St",
        "22:56:30": "Park Place",
        "22:57:30": "Chambers St",
        "23:02": "14 St"
      },
      "trip_source": 516
    },
    {
      "leg_type": "transfer",
      "leg_duration": "5m 0s",
      "leg_duration_s": 300,
      "leg_from_coords": "40.7378, -74.0002",
      "leg_to_coords": "40.7378, -74.0002",
      "transfer_from": "14 St",
      "transfer_to": "14 St",
      "transfer_ddwell": "2m 0s",
      "transfer_dactive": "3m 0s",
      "transfer_dist_km": 22.161608749878,
      "transfer_category": "t",
      "transfer_sources": [
        516,
        516
      ]
    },
    {
      "leg_type": "trip",
      "leg_duration": "1m 30s",
      "leg_duration_s": 90,
      "leg_from_coords": "40.7378, -74.0002",
      "leg_to_coords": "40.7334, -74.0029",
      "trip_route": "1",
      "trip_route_headsign": "South Ferry",
      "trip_from_depart": "23:07",
      "trip_from": "14 St",
      "trip_to_arrive": "23:08:30",
      "trip_to": "Christopher St-Sheridan Sq",
      "trip_stops": {
        "23:07": "14 St",
        "23:08:30": "Christopher St-Sheridan Sq"
      },
      "trip_source": 516
    },
    {
      "leg_type": "transfer",
      "leg_duration": "8m 30s",
      "leg_duration_s": 510,
      "leg_from_coords": "40.7334, -74.0029",
      "leg_to_coords": "40.7323, -74.0005",
      "transfer_from": "Christopher St-Sheridan Sq",
      "transfer_to": "W 4 St-Wash Sq",
      "transfer_ddwell": "3m 36s",
      "transfer_dactive": "4m 54s",
      "transfer_dist_km": 0.2865806227849888,
      "transfer_category": "g",
      "transfer_sources": [
        516,
        516
      ]
    },
    {
      "leg_type": "trip",
      "leg_duration": "3m 0s",
      "leg_duration_s": 180,
      "leg_from_coords": "40.7323, -74.0005",
      "leg_to_coords": "40.7497, -73.9878",
      "trip_route": "D",
      "trip_route_headsign": "Norwood-205 St",
      "trip_from_depart": "23:17",
      "trip_from": "W 4 St-Wash Sq",
      "trip_to_arrive": "23:20",
      "trip_to": "34 St-Herald Sq",
      "trip_stops": {
        "23:17": "W 4 St-Wash Sq",
        "23:20": "34 St-Herald Sq"
      },
      "trip_source": 516
    },
    {
      "leg_type": "transfer",
      "leg_duration": "21m 0s",
      "leg_duration_s": 1260,
      "leg_from_coords": "40.7497, -73.9878",
      "leg_to_coords": "40.7500, -73.9924",
      "transfer_from": "34 St-Herald Sq",
      "transfer_to": "NEW YORK PENN STATION",
      "transfer_ddwell": "12m 36s",
      "transfer_dactive": "8m 24s",
      "transfer_dist_km": 0.4903625393887009,
      "transfer_category": "g",
      "transfer_sources": [
        509,
        516
      ]
    },
    {
      "leg_type": "trip",
      "leg_duration": "10m 0s",
      "leg_duration_s": 600,
      "leg_from_coords": "40.7500, -73.9924",
      "leg_to_coords": "40.7612, -74.0758",
      "trip_route": "BNTNM",
      "trip_route_headsign": "MSU",
      "trip_from_depart": "23:41",
      "trip_from": "NEW YORK PENN STATION",
      "trip_to_arrive": "23:51",
      "trip_to": "FRANK R LAUTENBERG SECAUCUS UPPER LEVEL",
      "trip_stops": {
        "23:41": "NEW YORK PENN STATION",
        "23:51": "FRANK R LAUTENBERG SECAUCUS UPPER LEVEL"
      },
      "trip_source": 509
    },
    {
      "leg_type": "transfer",
      "leg_duration": "28m 0s",
      "leg_duration_s": 1680,
      "leg_from_coords": "40.7612, -74.0758",
      "leg_to_coords": "40.7612, -74.0758",
      "transfer_from": "FRANK R LAUTENBERG SECAUCUS UPPER LEVEL",
      "transfer_to": "FRANK R LAUTENBERG SECAUCUS LOWER LEVEL",
      "transfer_ddwell": "25m 0s",
      "transfer_dactive": "3m 0s",
      "transfer_dist_km": 0,
      "transfer_category": "g",
      "transfer_sources": [
        509,
        509
      ]
    },
    {
      "leg_type": "trip",
      "leg_duration": "11m 0s",
      "leg_duration_s": 660,
      "leg_from_coords": "40.7612, -74.0758",
      "leg_to_coords": "40.8314, -74.1313",
      "trip_route": "MNBN",
      "trip_route_headsign": "SUFFERN",
      "trip_from_depart": "24:19",
      "trip_from": "FRANK R LAUTENBERG SECAUCUS LOWER LEVEL",
      "trip_to_arrive": "24:30",
      "trip_to": "DELAWANNA",
      "trip_stops": {
        "24:19": "FRANK R LAUTENBERG SECAUCUS LOWER LEVEL",
        "24:25": "KINGSLAND",
        "24:27": "LYNDHURST",
        "24:30": "DELAWANNA"
      },
      "trip_source": 509
    },
    {
      "leg_type": "walk",
      "leg_duration": "17m 9s",
      "leg_duration_s": 1029,
      "leg_from_coords": "40.8314, -74.1313",
      "leg_to_coords": "40.8273, -74.1206",
      "walk_to": "Destination",
      "walk_from": "DELAWANNA",
      "walk_dist_km": 1.0007031923420913
    }
  ],
  "diagnostics_perf": {
    "perf_sloadcompute": "486.069576ms",
    "perf_smemload_connections": "1.545992797s",
    "perf_smemload_transfers": "33.501066786s",
    "perf_smemload_walksfrom": "35.153314ms",
    "perf_smemload_walksto": "34.150453ms",
    "perf_smemload_connsverb": "2.434137ms",
    "perf_sroute": "16.506265ms",
    "perf_nmemtransfers": 11942,
    "perf_nmemwalksfrom": 1242,
    "perf_nmemwalksfromnonnil": 4,
    "perf_nmemwalksto": 1242,
    "perf_nmemwalkstononnil": 3,
    "perf_nmemconns": 20063
  },
  "diagnostics_route": {
    "route_ntransfers": 4,
    "route_stotal": 9312,
    "route_swalk": 2082,
    "route_stransfer": 3750,
    "route_strip": 3480,
    "route_dtotal": "155m 12s",
    "route_dwalk": "34m 42s",
    "route_dtransfer": "62m 30s",
    "route_dtrip": "58m 0s"
  }
}
